package com.example.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.domain.entity.AddressBook;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 地址管理 Mapper 接口
 * </p>
 *
 * @author xiaoduan
 * @since 2024-09-24
 */
@Mapper
public interface AddressBookMapper extends BaseMapper<AddressBook> {

    @Select("select * from address_book where user_id = #{userId} ;")
    List<AddressBook> selectByUserId(Long userId);

}
